package sv.gob.mh.dgii.model;

// Generated 07-08-2013 11:08:04 AM by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RcDomicilioTmp generated by hbm2java
 */
@Entity
@Table(name = "RC_DOMICILIO_TMP", schema = "RUC")
public class RcDomicilioTmp implements java.io.Serializable {

	private RcDomicilioTmpId id;
	private RcRucTmp rcRucTmp;
	private String CDepartamento;
	private String CMunicipio;
	private Date fiDomicilio;
	private String DDetalle;
	private String SCalle;
	private String NApto;
	private String SComplemento;
	private String SColonia;
	private String NNumero;
	private String NTelefono;
	private String NFax;
	private Date ffDomicilio;
	private String CUsuario;
	private String CZona;
	private String SEmail;
	private Long NComercial;
	private String NFolioIndice;
	private String NSucursal;
	private String SNomComerSuc;
	private Long IRcDomicilio;
	private Boolean BActualiDga;

	public RcDomicilioTmp() {
	}

	public RcDomicilioTmp(RcDomicilioTmpId id, RcRucTmp rcRucTmp) {
		this.id = id;
		this.rcRucTmp = rcRucTmp;
	}

	public RcDomicilioTmp(RcDomicilioTmpId id, RcRucTmp rcRucTmp,
			String CDepartamento, String CMunicipio, Date fiDomicilio,
			String DDetalle, String SCalle, String NApto, String SComplemento,
			String SColonia, String NNumero, String NTelefono, String NFax,
			Date ffDomicilio, String CUsuario, String CZona, String SEmail,
			Long NComercial, String NFolioIndice, String NSucursal,
			String SNomComerSuc, Long IRcDomicilio, Boolean BActualiDga) {
		this.id = id;
		this.rcRucTmp = rcRucTmp;
		this.CDepartamento = CDepartamento;
		this.CMunicipio = CMunicipio;
		this.fiDomicilio = fiDomicilio;
		this.DDetalle = DDetalle;
		this.SCalle = SCalle;
		this.NApto = NApto;
		this.SComplemento = SComplemento;
		this.SColonia = SColonia;
		this.NNumero = NNumero;
		this.NTelefono = NTelefono;
		this.NFax = NFax;
		this.ffDomicilio = ffDomicilio;
		this.CUsuario = CUsuario;
		this.CZona = CZona;
		this.SEmail = SEmail;
		this.NComercial = NComercial;
		this.NFolioIndice = NFolioIndice;
		this.NSucursal = NSucursal;
		this.SNomComerSuc = SNomComerSuc;
		this.IRcDomicilio = IRcDomicilio;
		this.BActualiDga = BActualiDga;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "ICorrelativo", column = @Column(name = "I_CORRELATIVO", nullable = false, precision = 18, scale = 0)),
			@AttributeOverride(name = "nit", column = @Column(name = "NIT", nullable = false, length = 14)),
			@AttributeOverride(name = "CDomicilio", column = @Column(name = "C_DOMICILIO", nullable = false, length = 2)) })
	public RcDomicilioTmpId getId() {
		return this.id;
	}

	public void setId(RcDomicilioTmpId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumns({
			@JoinColumn(name = "I_CORRELATIVO", referencedColumnName = "I_CORRELATIVO", nullable = false, insertable = false, updatable = false),
			@JoinColumn(name = "NIT", referencedColumnName = "NIT", nullable = false, insertable = false, updatable = false) })
	public RcRucTmp getRcRucTmp() {
		return this.rcRucTmp;
	}

	public void setRcRucTmp(RcRucTmp rcRucTmp) {
		this.rcRucTmp = rcRucTmp;
	}

	@Column(name = "C_DEPARTAMENTO", length = 2)
	public String getCDepartamento() {
		return this.CDepartamento;
	}

	public void setCDepartamento(String CDepartamento) {
		this.CDepartamento = CDepartamento;
	}

	@Column(name = "C_MUNICIPIO", length = 2)
	public String getCMunicipio() {
		return this.CMunicipio;
	}

	public void setCMunicipio(String CMunicipio) {
		this.CMunicipio = CMunicipio;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FI_DOMICILIO", length = 7)
	public Date getFiDomicilio() {
		return this.fiDomicilio;
	}

	public void setFiDomicilio(Date fiDomicilio) {
		this.fiDomicilio = fiDomicilio;
	}

	@Column(name = "D_DETALLE", length = 60)
	public String getDDetalle() {
		return this.DDetalle;
	}

	public void setDDetalle(String DDetalle) {
		this.DDetalle = DDetalle;
	}

	@Column(name = "S_CALLE", length = 100)
	public String getSCalle() {
		return this.SCalle;
	}

	public void setSCalle(String SCalle) {
		this.SCalle = SCalle;
	}

	@Column(name = "N_APTO", length = 60)
	public String getNApto() {
		return this.NApto;
	}

	public void setNApto(String NApto) {
		this.NApto = NApto;
	}

	@Column(name = "S_COMPLEMENTO", length = 100)
	public String getSComplemento() {
		return this.SComplemento;
	}

	public void setSComplemento(String SComplemento) {
		this.SComplemento = SComplemento;
	}

	@Column(name = "S_COLONIA", length = 100)
	public String getSColonia() {
		return this.SColonia;
	}

	public void setSColonia(String SColonia) {
		this.SColonia = SColonia;
	}

	@Column(name = "N_NUMERO", length = 60)
	public String getNNumero() {
		return this.NNumero;
	}

	public void setNNumero(String NNumero) {
		this.NNumero = NNumero;
	}

	@Column(name = "N_TELEFONO", length = 15)
	public String getNTelefono() {
		return this.NTelefono;
	}

	public void setNTelefono(String NTelefono) {
		this.NTelefono = NTelefono;
	}

	@Column(name = "N_FAX", length = 8)
	public String getNFax() {
		return this.NFax;
	}

	public void setNFax(String NFax) {
		this.NFax = NFax;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FF_DOMICILIO", length = 7)
	public Date getFfDomicilio() {
		return this.ffDomicilio;
	}

	public void setFfDomicilio(Date ffDomicilio) {
		this.ffDomicilio = ffDomicilio;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCUsuario() {
		return this.CUsuario;
	}

	public void setCUsuario(String CUsuario) {
		this.CUsuario = CUsuario;
	}

	@Column(name = "C_ZONA", length = 2)
	public String getCZona() {
		return this.CZona;
	}

	public void setCZona(String CZona) {
		this.CZona = CZona;
	}

	@Column(name = "S_EMAIL", length = 100)
	public String getSEmail() {
		return this.SEmail;
	}

	public void setSEmail(String SEmail) {
		this.SEmail = SEmail;
	}

	@Column(name = "N_COMERCIAL", precision = 10, scale = 0)
	public Long getNComercial() {
		return this.NComercial;
	}

	public void setNComercial(Long NComercial) {
		this.NComercial = NComercial;
	}

	@Column(name = "N_FOLIO_INDICE", length = 20)
	public String getNFolioIndice() {
		return this.NFolioIndice;
	}

	public void setNFolioIndice(String NFolioIndice) {
		this.NFolioIndice = NFolioIndice;
	}

	@Column(name = "N_SUCURSAL", length = 3)
	public String getNSucursal() {
		return this.NSucursal;
	}

	public void setNSucursal(String NSucursal) {
		this.NSucursal = NSucursal;
	}

	@Column(name = "S_NOM_COMER_SUC", length = 100)
	public String getSNomComerSuc() {
		return this.SNomComerSuc;
	}

	public void setSNomComerSuc(String SNomComerSuc) {
		this.SNomComerSuc = SNomComerSuc;
	}

	@Column(name = "I_RC_DOMICILIO", precision = 10, scale = 0)
	public Long getIRcDomicilio() {
		return this.IRcDomicilio;
	}

	public void setIRcDomicilio(Long IRcDomicilio) {
		this.IRcDomicilio = IRcDomicilio;
	}

	@Column(name = "B_ACTUALI_DGA", precision = 1, scale = 0)
	public Boolean getBActualiDga() {
		return this.BActualiDga;
	}

	public void setBActualiDga(Boolean BActualiDga) {
		this.BActualiDga = BActualiDga;
	}

}
